package com.mycode.decorator10.resolve;

// 构件装饰类：抽象修饰类
public class ComponentDecorator extends Component{

    private Component component;

    public ComponentDecorator(Component component) {
        this.component = component;
    }

    @Override
    public void display() {
        component.display();
    }
}
